my_model = 'qwen3-32b' # Used for llm generated content. For a full list of available models, see https://www.alibabacloud.com/help/zh/model-studio/models
my_template_filename = 'template/template_tour_tips.html'
my_output_filename = 'output/output_tour_tips.html'
my_city = '北京'
my_keywords = '景点'
my_title = '海南旅游建议'
my_system_prompt_travel_tips = '''
你是一个旅游行程规划专家，根据输入的游览总天数、备选景点、天气信息，综合考虑天气、时间、景点的价格、质量、服务、以及景点间的距离等各种因素，输出最合适的行程计划。
---
输入格式为：
{
  "city": "城市名称",
  "days": "游览总天数",
  "candidate_places": [
    {
      "name": "景点名称",
      "address": "景点地址",
    }
    ...
  ],
  "forecasts": [
    {
      "date":"yyyy-MM-dd",
      "week":"index_of_day",
      "dayweather":"weather_conditon_of_the_day",
      "nightweather":"weather_conditon_of_the_night",
      "daytemp":"temperature_of_the_day",
      "nighttemp":"temperature_of_the_night",
      "daywind":"wind_direction_of_the_day",
      "nightwind":"wind_direction_of_the_night",
      "daypower":"wind_power_of_the_day",
      "nightpower":"wind_power_of_the_night",
      "daytemp_float":"more_precise_temperature_of_the_day",
      "nighttemp_float":"more_precise_temperature_of_the_night"
    },
    ...
  ]
}
---
输出格式为：
{
  "yyyy-MM-dd": [
    {"景点名称1": ["hh-mm","hh-mm"]},
    {"景点名称2": ["hh-mm","hh-mm"]},
    ...
  ],
  ...
}
输出字典中的每个键代表一个日期，日期格式为"yyyy-MM-dd"。
字典中的值代表相应日期中建议的景点列表，列表项按照当天的游览顺序排列，每个列表项是一个字典，字典的键为景点名称，它必须与输入中的某个景点名称完全一致,值为一个列表，包含两个元素，第一个元素为开始时间，第二个元素为结束时间，时间用24小时制表示。
要考虑游览当前景点的结束时间和游览下一个景点的开始时间之间，要预留景点间的通勤时间。
请严格遵守输出格式，仅输出字典，不要输出其他内容。
'''
my_system_prompt_weather_tips = '''
你是一个气象助手，根据输入的天气信息，输出出行、穿衣等方面的贴心建议。
---
输入格式为：
{
  "city":"城市名称",
  "forecasts":[
    {
      "date":"yyyy-MM-dd",
      "week":"index_of_day",
      "dayweather":"weather_conditon_of_the_day",
      "nightweather":"weather_conditon_of_the_night",
      "daytemp":"temperature_of_the_day",
      "nighttemp":"temperature_of_the_night",
      "daywind":"wind_direction_of_the_day",
      "nightwind":"wind_direction_of_the_night",
      "daypower":"wind_power_of_the_day",
      "nightpower":"wind_power_of_the_night",
      "daytemp_float":"more_precise_temperature_of_the_day",
      "nighttemp_float":"more_precise_temperature_of_the_night"
    },
    ...
  ]
}
---
输出格式为：
{
  "yyyy-MM-dd":"tips",
  ...
}
请严格遵守输出格式，仅输出字典。字典中的每个键代表一个日期，日期格式为"yyyy-MM-dd"。字典中的值，代表相应日期的建议，且每个值不要超过100个字符。不要输出其他内容。
'''

# Only for Test
my_messages  = [
  {"role": "system", "content": "You are a helpful assistant."},
  {"role": "user", "content": "你是谁？"},
]

# Only for Test
my_address = '天安门广场'
my_days = 3
my_destination = "116.397029,39.917839"
my_origin = "116.391802,39.928775"


# Only for Test
my_data_weather = {
  "city": "北京市",
  "forecasts": [
    {
      "date": "2025-05-26",
      "week": "1",
      "dayweather": "多云",
      "nightweather": "多云",
      "daytemp": "29",
      "nighttemp": "17",
      "daywind": "南",
      "nightwind": "南",
      "daypower": "1-3",
      "nightpower": "1-3",
      "daytemp_float": "29.0",
      "nighttemp_float": "17.0"
    },
    {
      "date": "2025-05-27",
      "week": "2",
      "dayweather": "多云",
      "nightweather": "多云",
      "daytemp": "32",
      "nighttemp": "19",
      "daywind": "西南",
      "nightwind": "西南",
      "daypower": "1-3",
      "nightpower": "1-3",
      "daytemp_float": "32.0",
      "nighttemp_float": "19.0"
    },
    {
      "date": "2025-05-28",
      "week": "3",
      "dayweather": "晴",
      "nightweather": "晴",
      "daytemp": "33",
      "nighttemp": "20",
      "daywind": "西南",
      "nightwind": "西南",
      "daypower": "1-3",
      "nightpower": "1-3",
      "daytemp_float": "33.0",
      "nighttemp_float": "20.0"
    },
    {
      "date": "2025-05-29",
      "week": "4",
      "dayweather": "晴",
      "nightweather": "多云",
      "daytemp": "32",
      "nighttemp": "22",
      "daywind": "西南",
      "nightwind": "西南",
      "daypower": "1-3",
      "nightpower": "1-3",
      "daytemp_float": "32.0",
      "nighttemp_float": "22.0"
    }
  ]
}

my_weather_tips = {
  '2025-05-26': '多云天气，早晚温差大，建议穿薄外套。',
  '2025-05-27': '多云转晴，白天较热，注意防晒补水。',
  '2025-05-28': '晴天高温，注意防暑降温，多喝水。',
  '2025-05-29': '白天晴朗，夜间多云，可适当减少衣物。'
}

my_travel_tips = {
   "2025-05-28":[
      {
         "海口骑楼老街":[
            "09:00",
            "11:30"
         ]
      },
      {
         "海南省博物馆":[
            "12:30",
            "14:30"
         ]
      },
      {
         "海口钟楼":[
            "15:00",
            "16:30"
         ]
      },
      {
         "万绿园":[
            "17:00",
            "19:00"
         ]
      }
   ],
   "2025-05-29":[
      {
         "五公祠":[
            "09:30",
            "11:30"
         ]
      },
      {
         "西天庙":[
            "12:00",
            "13:30"
         ]
      },
      {
         "金牛岭公园":[
            "14:00",
            "16:00"
         ]
      },
      {
         "白沙门公园":[
            "16:30",
            "18:30"
         ]
      }
   ],
   "2025-05-31":[
      {
         "秀英炮台":[
            "09:00",
            "11:00"
         ]
      },
      {
         "美舍河凤翔湿地公园":[
            "12:00",
            "13:30"
         ]
      },
      {
         "红城湖公园":[
            "14:00",
            "15:30"
         ]
      },
      {
         "世纪公园音乐广场":[
            "16:00",
            "18:00"
         ]
      }
   ]
}

my_travel_input_info = {
  "city": "海南",
  "days": "3",
  "candidate_places": [
      {
         "name":"海口骑楼老街",
         "address":"中山街道博爱北路31号",
      },
      {
         
         "name":"海口五公祠",
         "address":"海府路169号五公祠内",
         
      },
      {
         
         "name":"西天庙",
         "address":"义兴街75号",
         
      },
      {
         
         "name":"海南省博物馆",
         "address":"国兴大道76号",
         
      },
      {
         
         "name":"海口钟楼",
         "address":"长堤路20号(人民桥附近)",
         
      },
      {
         
         "name":"万绿园",
         "address":"滨海大道38号",
         
      },
      {
         
         "name":"世纪公园音乐广场",
         "address":"渡海路与港湾路交汇处",
         
      },
      {
         
         "name":"海口人民公园",
         "address":"中山街道公园路3号明星大厦附近",
         
      },
      {
         "name":"世纪公园",
         "address":"港湾路与世纪公园三横路交叉口东北120米",
      },
      {
         
         "name":"金牛岭公园",
         "address":"海秀中路102号",
         
      },
      {
         
         "name":"秀英炮台",
         "address":"世贸南路5号",
         
      },
      {
         
         "name":"海口骑楼老街",
         "address":"骑楼老街(得胜沙路-长堤路老街区)",
         
      },
      {
         
         "name":"琼山区府城三角公园",
         "address":"新城路区政府对面",
         
      },
      {
         
         "name":"白沙门公园",
         "address":"海甸六东路与人民大道交汇处",
         
      },
      {
         
         "name":"观海台",
         "address":"蓝城大道1号",
         
      },
      {
         
         "name":"美舍河凤翔湿地公园",
         "address":"椰海大道",
         
      },
      {
         
         "name":"红城湖公园",
         "address":"环湖路与红城湖路交叉口北60米",
         
      },
      {
         
         "name":"天空之山驿站",
         "address":"美丽沙路与海甸五西路交叉口西南460米",
         
      },
      {
         
         "name":"音乐喷泉",
         "address":"国兴大道8号",
         
      },
      {
         
         "name":"海瑞文化公园",
         "address":"清风路",
         
      }
   ],
  "forecasts": [
   {
      "date":"2025-05-28",
      "week":"3",
      "dayweather":"晴",
      "nightweather":"晴",
      "daytemp":"32",
      "nighttemp":"19",
      "daywind":"南",
      "nightwind":"南",
      "daypower":"4",
      "nightpower":"4",
      "daytemp_float":"32.0",
      "nighttemp_float":"19.0"
   },
   {
      "date":"2025-05-29",
      "week":"4",
      "dayweather":"多云",
      "nightweather":"小雨",
      "daytemp":"32",
      "nighttemp":"17",
      "daywind":"南",
      "nightwind":"南",
      "daypower":"4",
      "nightpower":"4",
      "daytemp_float":"32.0",
      "nighttemp_float":"17.0"
   },
   {
      "date":"2025-05-30",
      "week":"5",
      "dayweather":"小雨",
      "nightweather":"多云",
      "daytemp":"22",
      "nighttemp":"10",
      "daywind":"北",
      "nightwind":"北",
      "daypower":"1-3",
      "nightpower":"1-3",
      "daytemp_float":"22.0",
      "nighttemp_float":"10.0"
   },
   {
      "date":"2025-05-31",
      "week":"6",
      "dayweather":"晴",
      "nightweather":"多云",
      "daytemp":"28",
      "nighttemp":"12",
      "daywind":"东",
      "nightwind":"东",
      "daypower":"1-3",
      "nightpower":"1-3",
      "daytemp_float":"28.0",
      "nighttemp_float":"12.0"
   }
]
}

my_tour_plan = {
  '第一天': [
      ['故宫博物院', 'http://store.is.autonavi.com/showpic/2f968490d105bb2741e17f90b85c6b79','上午9点至中午12点'],
      ['天安门广场-国旗', 'http://store.is.autonavi.com/showpic/b2e84bbc07d56d5dc5e843a93a03061d','下午2点至傍晚6点'],
      ['恭王府博物馆', 'http://store.is.autonavi.com/showpic/561ebdb222a6f17913f1bbd1062c3d93','晚上7点至晚上9点']
  ],
  '第二天': [
      ['八达岭长城', 'http://store.is.autonavi.com/showpic/dcd78b35cb123744056c03072ecdea17','上午8点至中午12点'],
      ['颐和园', 'http://store.is.autonavi.com/showpic/3029a20076593ba33b5ebbdcfea7e569','下午2点至傍晚6点'],
      ['北京奥林匹克公园', 'http://store.is.autonavi.com/showpic/7bd6fc174fed670cf2ea3a6ffcfa303a','晚上7点至晚上9点']
  ],
  '第三天': [
      ['天坛', 'http://store.is.autonavi.com/showpic/dcd78b35cb123744056c03072ecdea17','上午7点至中午12点'],
      ['北京大学', 'http://store.is.autonavi.com/showpic/3029a20076593ba33b5ebbdcfea7e569','下午1点至傍晚6点'],
      ['国家图书馆', 'http://store.is.autonavi.com/showpic/7bd6fc174fed670cf2ea3a6ffcfa303a','晚上8点至晚上9点']
  ],
}

my_tour_tips = {
   "2025-05-28":[
      {
         "海口骑楼老街":[
            "09:00",
            "11:30"
         ]
      },
      {
         "海南省博物馆":[
            "12:30",
            "14:30"
         ]
      },
      {
         "海口钟楼":[
            "15:00",
            "16:30"
         ]
      },
      {
         "万绿园":[
            "17:00",
            "19:00"
         ]
      }
   ],
   "2025-05-29":[
      {
         "五公祠":[
            "09:30",
            "11:30"
         ]
      },
      {
         "西天庙":[
            "12:00",
            "13:30"
         ]
      },
      {
         "金牛岭公园":[
            "14:00",
            "16:00"
         ]
      },
      {
         "白沙门公园":[
            "16:30",
            "18:30"
         ]
      }
   ],
   "2025-05-31":[
      {
         "秀英炮台":[
            "09:00",
            "11:00"
         ]
      },
      {
         "美舍河凤翔湿地公园":[
            "12:00",
            "13:30"
         ]
      },
      {
         "红城湖公园":[
            "14:00",
            "15:30"
         ]
      },
      {
         "世纪公园音乐广场":[
            "16:00",
            "18:00"
         ]
      }
   ]
}

my_text_search_result = {
   "suggestion":{
      "keywords":"",
      "ciytes":{
         "suggestion":[
            
         ]
      }
   },
   "pois":[
      {
         "id":"B03820P68P",
         "name":"海口骑楼老街",
         "address":"中山街道博爱北路31号",
         "typecode":"061001|110000",
         "photo":"http://store.is.autonavi.com/showpic/b9212de14160f02edc6889146d749cdd"
      },
      {
         "id":"B038200FEA",
         "name":"五公祠",
         "address":"海府路169号五公祠内",
         "typecode":"110202",
         "photo":"http://store.is.autonavi.com/showpic/f374c4c055cdacbff085feecddc84736"
      },
      {
         "id":"B03820Q2ME",
         "name":"西天庙",
         "address":"义兴街75号",
         "typecode":"110205",
         "photo":"https://aos-comment.amap.com/B03820Q2ME/comment/content_media_external_file_7771_ss__1746154450543_07872348.jpg"
      },
      {
         "id":"B038202RCN",
         "name":"海南省博物馆",
         "address":"国兴大道76号",
         "typecode":"140100",
         "photo":"http://store.is.autonavi.com/showpic/1283915989e638442e5553428874c41a"
      },
      {
         "id":"B0FFFEXRIQ",
         "name":"海口钟楼",
         "address":"长堤路20号(人民桥附近)",
         "typecode":"110200",
         "photo":"http://store.is.autonavi.com/showpic/773d46d5c3bd8dbded729e0e4fa9c60d"
      },
      {
         "id":"B038202BCV",
         "name":"万绿园",
         "address":"滨海大道38号",
         "typecode":"110203",
         "photo":"http://store.is.autonavi.com/showpic/febdf90ae43f552844648d4f963d331e"
      },
      {
         "id":"B0FFI0XL9G",
         "name":"世纪公园音乐广场",
         "address":"渡海路与港湾路交汇处",
         "typecode":"110100",
         "photo":"https://aos-comment.amap.com/B0FFI0XL9G/comment/598f9887ebbd81a60415ae98a477c666_2048_2048_80.jpg"
      },
      {
         "id":"B038200FFA",
         "name":"海口人民公园",
         "address":"中山街道公园路3号明星大厦附近",
         "typecode":"110101",
         "photo":"http://store.is.autonavi.com/showpic/52d69878205aac56a7f0e909846033af"
      },
      {
         "id":"B038202FHE",
         "name":"世纪公园",
         "address":"港湾路与世纪公园三横路交叉口东北120米",
         "typecode":"110101",
         "photo":"http://store.is.autonavi.com/showpic/12e2e5cf0c17458569bcc81e17b34c87"
      },
      {
         "id":"B038200014",
         "name":"金牛岭公园",
         "address":"海秀中路102号",
         "typecode":"110101",
         "photo":"http://store.is.autonavi.com/showpic/08ea80d353edd5525b821c086cad48e8"
      },
      {
         "id":"B0FFF5LD2B",
         "name":"秀英炮台",
         "address":"世贸南路5号",
         "typecode":"110200",
         "photo":"https://aos-comment.amap.com/B0FFF5LD2B/comment/2105597e77ade0f77f26079bfb4690fa_2048_2048_80.jpg"
      },
      {
         "id":"B0FFGOSSVY",
         "name":"海口骑楼老街",
         "address":"骑楼老街(得胜沙路-长堤路老街区)",
         "typecode":"110000",
         "photo":"https://aos-comment.amap.com/B0FFGOSSVY/comment/87E1F595_FF33_4E2C_974D_44CEDB62CBB8_L0_001_2016_1512_1742687469360_59960156.jpg"
      },
      {
         "id":"B03820P5PH",
         "name":"琼山区府城三角公园",
         "address":"新城路区政府对面",
         "typecode":"110101",
         "photo":"http://store.is.autonavi.com/showpic/9600d280c07c277387d57ef45452f8eb"
      },
      {
         "id":"B038202XMJ",
         "name":"白沙门公园",
         "address":"海甸六东路与人民大道交汇处",
         "typecode":"110101",
         "photo":"http://store.is.autonavi.com/showpic/d8b0706611eaa4ab37373aab756888e3"
      },
      {
         "id":"B03820PSHY",
         "name":"观海台",
         "address":"蓝城大道1号",
         "typecode":"110200",
         "photo":"https://aos-comment.amap.com/B03820PSHY/comment/e86286c870f881802907123fc2bcfba9_2048_2048_80.jpg"
      },
      {
         "id":"B0FFI1OUM8",
         "name":"美舍河凤翔湿地公园",
         "address":"椰海大道",
         "typecode":"110101",
         "photo":"http://store.is.autonavi.com/showpic/dda4d276fc5694a6c1535277492db9b9"
      },
      {
         "id":"B03820Q1GH",
         "name":"红城湖公园",
         "address":"环湖路与红城湖路交叉口北60米",
         "typecode":"110101",
         "photo":"https://aos-comment.amap.com/B03820Q1GH/comment/88fa5cae64ef3a9b1ac92a2574776386_2048_2048_80.jpg"
      },
      {
         "id":"B0IK5CTCD8",
         "name":"天空之山驿站",
         "address":"美丽沙路与海甸五西路交叉口西南460米",
         "typecode":"110200",
         "photo":"https://aos-comment.amap.com/B0IK5CTCD8/comment/f277e52b92c45d7438de9e911d46dc50_2048_2048_80.jpg"
      },
      {
         "id":"B0JK1SJJ64",
         "name":"音乐喷泉",
         "address":"国兴大道8号",
         "typecode":"110200",
         "photo":"https://aos-comment.amap.com/B0JK1SJJ64/comment/b3643f7a9c2725ba2ba91ec38b3eeeb7_2048_2048_80.jpg"
      },
      {
         "id":"B0IKLZRHM3",
         "name":"海瑞文化公园",
         "address":"清风路",
         "typecode":"110101",
         "photo":"https://aos-comment.amap.com/B0IKLZRHM3/comment/b1a7128afe44fc0cadc2b792a2f91797_2048_2048_80.jpg"
      }
   ]
}

my_dlat = '39.917839'
my_dlon = '116.397029'
my_dname = '北海公园'
my_slat = '44.172950'
my_slon = '87.521924'
my_sname = '故宫博物院'
my_taxi_uri_list = [
   [
      r'amapuri://drive/takeTaxi?sourceApplication=amapplatform&amp;slat=39.917839&amp;slon=116.397029&amp;sname=%E6%95%85%E5%AE%AB&amp;dlon=116.397755&amp;dlat=39.903179&amp;dname=%E5%A4%A9%E5%AE%89%E9%97%A8%E5%B9%BF%E5%9C%BA',
      r'amapuri://drive/takeTaxi?sourceApplication=amapplatform&amp;slat=39.917839&amp;slon=116.397029&amp;sname=%E6%95%85%E5%AE%AB&amp;dlon=116.397755&amp;dlat=39.903179&amp;dname=%E5%A4%A9%E5%AE%89%E9%97%A8%E5%B9%BF%E5%9C%BA',
   ],
   [
      r'amapuri://drive/takeTaxi?sourceApplication=amapplatform&amp;slat=39.917839&amp;slon=116.397029&amp;sname=%E6%95%85%E5%AE%AB&amp;dlon=116.397755&amp;dlat=39.903179&amp;dname=%E5%A4%A9%E5%AE%89%E9%97%A8%E5%B9%BF%E5%9C%BA',
      r'amapuri://drive/takeTaxi?sourceApplication=amapplatform&amp;slat=39.917839&amp;slon=116.397029&amp;sname=%E6%95%85%E5%AE%AB&amp;dlon=116.397755&amp;dlat=39.903179&amp;dname=%E5%A4%A9%E5%AE%89%E9%97%A8%E5%B9%BF%E5%9C%BA',
   ],
   [
      r'amapuri://drive/takeTaxi?sourceApplication=amapplatform&amp;slat=39.917839&amp;slon=116.397029&amp;sname=%E6%95%85%E5%AE%AB&amp;dlon=116.397755&amp;dlat=39.903179&amp;dname=%E5%A4%A9%E5%AE%89%E9%97%A8%E5%B9%BF%E5%9C%BA',
      r'amapuri://drive/takeTaxi?sourceApplication=amapplatform&amp;slat=39.917839&amp;slon=116.397029&amp;sname=%E6%95%85%E5%AE%AB&amp;dlon=116.397755&amp;dlat=39.903179&amp;dname=%E5%A4%A9%E5%AE%89%E9%97%A8%E5%B9%BF%E5%9C%BA',
   ],
]